<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<%@include file="/WEB-INF/common/taglibs.jsp"%>    
    <title>江苏龙芯梦兰科技股份有限公司-SMT生产管理系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="${ctx}resources/css/common.css" />
  </head>
  <script type="text/javascript">
	function submitForm(){
		var icNo = $("#icNo").val();
		if(icNo==""){
			alert("主板编号不能为空!");
			$("#icNo").focus();
			return false;
		}
		var macNo = $("#macNo").val();
		if(macNo==""){
			alert("MAC地址不能为空!");
			$("#macNo").focus();
			return false;
		}
		var pmonVersion = $("#pmonVersion").val();
		if(pmonVersion==""){
			alert("PMON版本号不能为空!");
			$("#pmonVersion").focus();
			return false;
		}
		var systemName = $("#systemName").val();
		if(systemName==""){
			alert("系统名称不能为空!");
			$("#systemName").focus();
			return false;
		}
		var productName = $("#productName").val();
		if(productName==""){
			alert("产品名称不能为空!");
			$("#productName").focus();
			return false;
		}
		var systemVersion = $("#systemVersion").val();
		if(systemVersion==""){
			alert("系统版本号不能为空!");
			$("#systemVersion").focus();
			return false;
		}
		var programVersion = $("#programVersion").val();
		if(programVersion==""){
			alert("程序版本号不能为空!");
			$("#programVersion").focus();
			return false;
		}
		$("#saveBoard").submit();
	}
  </script>
 <body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="${ctx}resources/images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1"> 修改主板${circuitBoard.icNo}信息基本信息列表</span></td>
              </tr>
            </table></td>
            <td></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
    	<form id="saveBoard" action="${ctx}board/save.htm" method="post">
    	<input type="hidden" width="100%" name="circuitBoard.id" value="${model.id}"/>
    	<input type="hidden" width="100%" name="circuitBoard.orderNo" value="${model.orderNo}"/>
    	<input type="hidden" width="100%" name="circuitBoard.icNo" value="${circuitBoard.icNo}"/>
	      <tr>
	        <td height="20">
	        	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#fbfcfd" >
	            	<tr height="25">
	                	<td align="right"class="STYLE6" width="25%">板子编号:&nbsp;</td>
	                    <td align="left" class="STYLE19" width="20%" >${model.icNo}</td>
	                    <td align="right" class="STYLE19" width="10%" >订单号:&nbsp;</td>
	                    <td align="left" class="STYLE19" width="20%">${model.orderNo}</td>
	                    <td align="left" class="STYLE19" width="25%"></td>
	                </tr>
	             </table>
	             </td>
	         </tr>
	         <tr>
	        	<td height="20">
	        		<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#fbfcfd" >
	            		<tr height="25">
		                	<td align="right"class="STYLE6" width="25%">MAC地址:&nbsp;</td>
		                    <td align="left" class="STYLE19" width="20%" ><input type="text" width="100%" id="macNo"  name="circuitBoard.macNo" value="${model.macNo}"/></td>
		                    <td align="right" class="STYLE19" width="10%" >PMON版本号:&nbsp;</td>
		                    <td align="left" class="STYLE19" width="20%"><input type="text" width="100%" id="pmonVersion"  name="circuitBoard.pmonVersion" value="${model.pmonVersion}"/></td>
		                    <td align="left" class="STYLE19" width="25%"></td>
	               		 </tr>
	            	 </table>
	             </td>
	         </tr>
	          <tr>
	        <td height="20">
	        	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#fbfcfd" >
	            	<tr height="25">
	                	<td align="right"class="STYLE6" width="25%">系统名称:&nbsp;</td>
	                    <td align="left" class="STYLE19" width="20%" ><input type="text" width="100%" id="systemName"   name="circuitBoard.systemName" value="${model.systemName}"/></td>
	                    <td align="right" class="STYLE19" width="10%" >系统版本:&nbsp;</td>
	                    <td align="left" class="STYLE19" width="20%"><input type="text" width="100%" id="systemVersion"  name="circuitBoard.systemVersion" value="${model.systemVersion}"/></td>
	                    <td align="left" class="STYLE19" width="25%"></td>
	                </tr>
	             </table>
	             </td>
	         </tr>
	         <tr>
	        	<td height="20">
		        	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#fbfcfd" >
			            	<tr height="25">
		                	<td align="right"class="STYLE6" width="25%">程序版本:&nbsp;</td>
		                    <td align="left" class="STYLE19" width="20%" ><input type="text" width="100%" id="programVersion" name="circuitBoard.programVersion" value="${model.programVersion}" /></td>
		                    <td align="right" class="STYLE19" width="10%" >状态:&nbsp;</td>
		                    <td align="left" class="STYLE19" width="20%">
		                    	<select name="circuitBoard.status">
		                    		<option value="0" selected="selected">良品</option>
		                    		<option value="1">不良品</option>
		                    		<option value="2">报废品</option>
		                    	</select>
		                    </td>
		                    <td align="left" class="STYLE19" width="25%"></td>
		                </tr>
		             </table>
	             </td>
	         </tr>
	         <tr>
	        	<td height="20">
	        	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#fbfcfd" >
		        	<tr height="25">
		                	<td align="right"class="STYLE6" width="25%">备注:&nbsp;</td>
		                    <td align="left" class="STYLE19" width="75%" ><textarea name="circuitBoard.remark" cols="30">${circuitBoard.remark}</textarea></td>
		                </tr>
		        	
		        	</table>
		        </td>
	         </tr>
	         </form>
	         <tr>
	         	<td>
			       	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#ffffff">
				          <tr height="40">
			                   <td width="50%" align="right"><input type="image" src="${ctx}resources/images/dl_1.gif" onclick="submitForm()"/>&nbsp;</td>
			                   <td width="50%" align="left">&nbsp;<a href="${ctx}board/list.htm"><img src="${ctx}resources/images/dl_2.gif" style="border: 0px"/></a></td>
			               </tr>
		           </table>
		        </td>
	      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td height="30">&nbsp;</td>
  </tr>
</table>
</body>
</html>
